<% content_for :page_head do %>
  <h1>正在创建项目 <%= @project.name %> 的Issue</h1>
<% end %>

<% form_for :issue, @issue, :url => project_issues_url do |f| %>
  <%= f.error_messages %>

<p>
  <label for="priority" class="label">优先级:</label>
  <%= f.select(:priority, [['S', 'S'], ['A', 'A'], ['B', 'B'], ['C', 'C']], { :include_blank => false }) %>
</p>

<p>
  <label for="card_type" class="label">SIM卡状态:</label>
  <%= f.select(:card_type,
              [['G+C', 'G+C'], ['G+G', 'G+G'], ['G+G+C', 'G+G+C'], ['动态地带', '动态地带'], ['神州行', '神州行'], ['大众卡', '大众卡'], ['联通卡', '联通卡'], ['全球通', '全球通'], ['CDMA卡', 'CDMA卡']],
              { :include_blank => false }) %>
</p>

<p>
  <label for="verno" class="label">版本号:</label><br/>
  <%= f.select(:tag_ids, @project.tags.find_all_by_state("released").collect {|p| [ p.name, p.id ] },{ :include_blank => false }) %>
</p>

<p>
  <label for="title" class="label">标题:</label><br/>
  <%= f.text_field :title %>
</p>

<p>
  <label for="step" class="label">步骤:</label><br/>
  <%= f.text_area :step %>
</p>

<p>
  <label for="description" class="label">描述:</label><br/>
  <%= f.text_area :description %>
</p>

<p>
  <label for="ratio" class="label">比率:</label><br/>
  <%= f.text_field :ratio %>
</p>

<p>
  <label for="phoneid" class="label">测试机编号:</label><br/>
  <%= f.text_field :phoneid %>
</p>

<p>
  <label for="P1" class="label">P1:</label><br/>
  <%= f.text_field :P1 %>
</p>

<p>
  <label for="P2" class="label">P2:</label><br/>
  <%= f.text_field :P2 %>
</p>

<p>
  <label for="R" class="label">R:</label><br/>
  <%= f.text_field :R %>
</p>

<p>
  <label for="S" class="label">S:</label><br/>
  <%= f.text_field :S %>
</p>

<p>
  <%= f.submit "创建" %>
</p>

<% end %>